<template>
    <div>
        <!-- 透传原生属性和原生事件到子组件 -->
        <Navbar class="navbar" id="navbarid" style="background-color: yellow;" @click="handleClick"></Navbar>
    </div>
</template>
<script>
import Navbar from './Navbar.vue'

export default {
    components: {
        Navbar
    },
    methods: {
        handleClick() {
            console.log(666);
        }
    }
}
</script>